package com.lmk.tl;

import javax.swing.*;

public class AnimalText {
    public static void main(String[] args) {
        Dog wc=new Dog();
        wc.setAge(2);
        wc.setColor("黄色");
        System.out.println("旺财的年龄"+wc.getAge());
        System.out.println("旺财的颜色"+wc.getColor());
        wc.eat("大骨头");
        wc.catchThief("石阡");
        System.out.println("***************************");
        Bird yw=new Bird();
        yw.setColor("黑色");
        yw.setAge(20);
        yw.sleep();
        yw.fly();
    }
}
